<?php

namespace common\models\work;

use Yii;

/**
 * This is the model class for table "{{%survey_round}}".
 *
 * @property int $id
 * @property string $name 轮次名称
 * @property string $description 描述/备注
 * @property int $begin_time 开始时间
 * @property int $end_time 结束时间
 * @property string $mark 说明
 * @property int $status 状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property int $deleted_at 删除时间
 */
class SurveyRound extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%survey_round}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['name'], 'required'],
            [['begin_time', 'end_time', 'status', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
            [['mark'], 'string'],
            [['name', 'description'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'name' => '轮次名称',
            'description' => '描述/备注',
            'begin_time' => '开始时间',
            'end_time' => '结束时间',
            'mark' => '说明',
            'status' => '状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
            'deleted_at' => '删除时间',
        ];
    }

}
